﻿<h3>EventCallBack_Demo</h3>

@foreach (var item in Datas)
{
    <span @onselectionchange="OnDataSelected"> @item</span>
}

@code {

    protected List<string> Datas = new List<string>();

    protected override async Task OnInitializedAsync()
    {
        for (int i = 0; i < 100; i++)
        {
            Datas.Add("Item   " + i);
        }

    }
    [Parameter]
    public EventCallback OnDataSelected { get; set; }



}
